<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link
	href="${ pageContext.request.contextPath }/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
</HEAD>

<body>
	<form
		action="${pageContext.request.contextPath}/admin/adminCategorySecond_update.action"
		method="post" style="margin-top: 60px;">
		<input type="hidden" name="csid" value="${findByCsid.csid }">
		<table cellSpacing="1" cellPadding="5" width="50%" align="center"
			bgColor="#eeeeee" style="border: 1px solid #8ba7e3; height: 250px;"
			border="0">
			<tr height="50">
				<td align="center" bgColor="#afd1f3" height="26" colspan="4"><strong>编辑二级分类</strong>
				</td>
			</tr>
			<tr>
				<td width="30%" align="center" bgColor="#f5fafe"></td>
				<td bgColor="#f5fafe"><select name="cid" id="cid"
					style="height: 40px; width: 220px; border-radius: 5px;">
						<c:forEach items="${categoryList}" var="cs">
							<c:if test="${cs.cid == findByCsid.cid}">
								<option value="${cs.cid}" selected>${cs.cname}</option>
							</c:if>
							<c:if test="${cs.cid != findByCsid.cid}">
								<option value="${cs.cid}">${cs.cname}</option>
							</c:if>
						</c:forEach>
				</select></td>
			</tr>

			<tr>
				<td width="30%" align="center" bgColor="#f5fafe">二级分类名称：</td>
				<td bgColor="#f5fafe" colspan="3"><input type="text"
					name="csname"
					style="height: 42px; width: 220px; border-radius: 4px;"
					value="${findByCsid.csname }" /></td>
			</tr>
			<tr bgColor="#f5fafe">
				<!--colSpan="表示一个表哥横跨几个单元格 -->
				<td align="center" colSpan="4"><input type="submit"
					class="btn btn-primary" value="确定" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<button type="reset" class="btn">重置</button>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <!--history.go(-1)返回上一个页面  -->
					<input type="button" class="btn btn-success"
					onclick="history.go(-1)" value="返回" /></td>
			</tr>
		</table>
	</form>
</body>
</HTML>
